package edu.sctu.wangxiaoqiang.day20150628;

/**
 * Created by user25 on 2015/6/28.
 */
public class Thread extends java.lang.Thread {

    /**
    线程延停5秒（5000）；
     */
    public void run(){
        try {
            System.out.println("请等待五秒。。。。");
            sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }



    }
}

//        try {
//
//            URL url = new URL("http://api.ii.com.cn/goods/apprec？page=1&size=10");
//
//            URLConnection conn = url.openConnection();
//            BufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream()));
//
//            String fileName = "D:\\Json\\Appbean.txt";
//            File file = new File(fileName);
//            FileWriter fw = new FileWriter(file.getAbsoluteFile());
//            BufferedWriter bw = new BufferedWriter(fw);
//            while ((count = br.read()) != -1) {
//                bw.write(count);
//            }
//            bw.close();
//            fw.close();
//            br.close();
//            System.out.println("Done");
//        } catch (MalformedURLException e) {
//            e.printStackTrace();
//        } catch (IOException e) {
//            e.printStackTrace();
//        }